Skip to content

Conversation

@codefromthecrypt
Copy link
Contributor

This updates the requirements.txt to include Elastic Distribution of OpenTelemetry (EDOT) Python.

When OTEL_SDK_DISABLED=false, logs, metrics and traces are exported to an OTLP endpoint, which by default points to the Elastic APM server port 8200.

For example, this is a trace for OpenAI and if you click on the span circled, you can see underlying request/response data for the chat request

image

EDOT Python at the moment includes support for OpenAI, so will have portable data for requests using ChatOpenAI. Data is still collected for other options like bedrock and vertex, just not in a portable form.

For example, this is a trace including bedrock, but doesn't have logs for the LLM request/response
image

Watch EDOT Python releases for updates which can expand this list.

Special thanks to @xrmx @joemcelroy @anuraaga @ezimuel @EvelienSchellekens @bshetti who all contributed to this in implementation or q/a

Signed-off-by: Adrian Cole <adrian.cole@elastic.co>
@codefromthecrypt codefromthecrypt merged commit 7f46e80 into main Jan 8, 2025
2 checks passed
@codefromthecrypt codefromthecrypt deleted the chatbot-rag-app branch January 8, 2025 02:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants